import { createRouter, createWebHistory } from "vue-router";

import Login from "../pages/Login.vue";
import Home from "../pages/Home.vue";

// 路由的映射关系
const routes = [
    { path: "/login", component: Login },
    { path: "/home", component: Home },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router;  // 导出 